Skip to content

fix: handle UNKNOWN code on syscall: 'stat' #2174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2023
Merged

fix: handle UNKNOWN code on syscall: 'stat' #2174

merged 1 commit into from
Aug 20, 2023

Conversation

kittaakos
Copy link
Contributor

Motivation

IDE2 must gracefully handle when it cannot restore a sketch from a network drive at startup.

Change description

This PR relaxes the logic of how IDE2 checks whether a sketch is accessible. From now on, UNKNOWN errors are caught, and the missing sketch is not restored.

Other information

Closes #2166

Reviewer checklist

  • PR addresses a single concern.
  • The PR has no duplicates (please search among the Pull Requests before creating one)
  • PR title and description are properly filled.
  • Docs have been added / updated (for bug fixes / features)

@kittaakos kittaakos added topic: code Related to content of the project itself os: windows Specific to Windows operating system type: imperfection Perceived defect in any part of project labels Aug 18, 2023
@kittaakos kittaakos self-assigned this Aug 18, 2023
@kittaakos kittaakos marked this pull request as ready for review August 18, 2023 11:42
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I reported at #2166 (comment), I'm not able to reproduce #2166 so I can't verify that this fixes it. However, I am able to produce similar symptoms via different conditions (as described at the link above) and I did verify that this fixes that fault. I believe the fault I produced to be equivalent to that reported in #2166 so I will conclude that this should fix that one as well.

Thanks Akos!

@kittaakos kittaakos merged commit b256655 into main Aug 20, 2023
@kittaakos kittaakos deleted the #2166 branch August 20, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: windows Specific to Windows operating system topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDE does not start when last project is on unavailable network path
2 participants